package com.evenmo.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.JdbcType;

import com.evenmo.pojo.Card;

public interface CardMapper {
@Select("select * from tb_card where id=#{id,jdbcType=INTEGER}")
@Results(id="cardResultMap",value={
		@Result(id=true,column="id",property="id",jdbcType=JdbcType.INTEGER),
		@Result(column="code",property="code",jdbcType=JdbcType.VARCHAR),
		@Result(column="data_flag",property="dataFlag",jdbcType=JdbcType.INTEGER)
})
	public Card queryCardById(@Param("id") Integer id);
}
